package cn.clouds234.json.hutoojson;

/**
 * @author clouds234
 * @date 2022/10/8 11:44
 */
public class JsonUtilTest {
    public static void main(String[] args) {
//        Student s1 = new Student();
//        s1.setName("tom");
//        s1.setAge(1);
//        s1.setSex("man");
//        Student s2 = new Student();
//        s2.setName("jerry");
//        s2.setSex("woman");
//        s2.setAge(2);
//        List<Student> students = new ArrayList<>();
//        students.add(s1);
//        students.add(s2);
//        Class208 class208 = new Class208();
//        class208.setTeacher("tomAndJerry");
//        class208.setStudents(students);
//        String s = JSONUtil.toJsonStr(Arrays.asList(class208));
//        System.out.println("=================================");
//        System.out.println(s);
//        createNamespaceTest();
//        imageChange();
        userPares();
    }

    public static void userPares(){
        String uJ1 = "{\n" +
                "  \"success\": true,\n" +
                "  \"errCode\": \"0000\",\n" +
                "  \"errMessage\": \"操作成功\",\n" +
                "  \"data\": {\n" +
                "    \"id\": 112633,\n" +
                "    \"tenantId\": \"lttest\",\n" +
                "    \"tenantName\": \"李涛的租户\",\n" +
                "    \"userName\": \"admin\",\n" +
                "    \"personCode\": null,\n" +
                "    \"gender\": null,\n" +
                "    \"email\": null,\n" +
                "    \"phone\": null,\n" +
                "    \"position\": null,\n" +
                "    \"orgCode\": null,\n" +
                "    \"orgName\": null,\n" +
                "    \"orgArea\": null,\n" +
                "    \"avatar\": null,\n" +
                "    \"personName\": null,\n" +
                "    \"isSuperAdmin\": false,\n" +
                "    \"isTenantAdmin\": true,\n" +
                "    \"orgLogo\": null,\n" +
                "    \"orgDesc\": null,\n" +
                "    \"viewableList\": null,\n" +
                "    \"otherAuthList\": null,\n" +
                "    \"personId\": null,\n" +
                "    \"orgId\": null,\n" +
                "    \"isDefaultPassword\": null,\n" +
                "    \"tenantDisplayName\": \"李涛的租户\",\n" +
                "    \"rolesList\": null,\n" +
                "    \"tenantDesc\": \"\"\n" +
                "  },\n" +
                "  \"traceId\": \"8aeea4c2cb434648be460088b5f63227.96.17376218837680101\"\n" +
                "}";
        String header = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiJjYjBkZjMxY2RhZDI0NWQ4OGI4OTAwZTE0OGRkMjRkMl9sdHRlc3RfMTEyNjMzIiwicm5TdHIiOiJaZzI3S1FKYkhHcVdUU0lLd3RsR3FTeTBxaExkTzdzMSJ9.X28L2FUYnL2ckIxUN1nOLrcevKGWawK6jDVY6gKfY0g";

    }

}
